<?php

class Sfs_Model_User
{
    const ID_UNKNOWN = 'anonymous user';

    protected $_data = NULL;

    public function __construct($id = null)
    {
        if (null !== $id) {
            $this->_data = $id;
        }
    }

    public function getUser()
    {
    	return $this->_data;
    }
    
    public function getId()
    {    	
        if (null === $this->_data) {
            return self::ID_UNKNOWN;
        } else {        	
            return $this->_data ->username;
        }
    }
}
